import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
// piniaPersist(持久化)
pinia.use(piniaPluginPersistedstate)
export default pinia

// 全局注册 store
// export function setupStore(app: App<Element>) {
//   app.use(pinia)
// }

// export * from './modules/app'
// export * from './modules/permission'
// export * from './modules/setting'
// export { pinia }
